#define  _CRT_SECURE_NO_WARNINGS
#include "Stack.h"
void test1()
{
	ST sl;
	STInit(&sl);
	STpush(&sl, 1);
	STpush(&sl, 6);
	STpush(&sl, 5);
	STpush(&sl, 3);
	STpush(&sl, 88);
	printf("size:%d\n", STSize(&sl));
	printf("capacity:%d\n", capacity(&sl));
	while (!STEmpty(&sl))
	{
		printf("size:%d   ", STSize(&sl));
		printf("%d \n", STTop(&sl));
		STPop(&sl);
	}
	printf("size:%d\n", STSize(&sl));
	STDestory(&sl);
}
int main()
{
	test1();
	return 0;
}